package com.jinsilu.freight.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.jinsilu.freight.R;
import com.jinsilu.freight.http.response.DictBean;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * 保险公司列表信息
 *
 * @author yangyang
 * @time 2020-11-10 16:00
 */
public class InsuranceListAdapter extends BaseQuickAdapter<DictBean, BaseViewHolder> {

    public InsuranceListAdapter(@Nullable List<DictBean> data) {
        super(R.layout.item_insurance_list, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, DictBean s) {
        holder.setText(R.id.tv_insurance_name, s.getDictLabel());
    }
}
